package spring.superrun.record.mvc.entity;

import spring.superrun.tool.newid.NewIdByUUId;

import java.io.Serializable;

/**
 * (SuperrunRecordranking)实体类
 *
 * @author makejava
 * @since 2021-06-18 09:19:54
 */
public class SuperrunRecordranking implements Serializable {
    private static final long serialVersionUID = 598829255354896034L;

    private String id;
    /**
     * 用户id
     */
    private String userid;
    /**
     * 某端最高平均速度
     */
    private Double maxavgspeed;
    /**
     * 打卡位置个数
     */
    private Integer locationcount;
    /**
     * 总计秒数
     */
    private Integer totalseconds;
    /**
     * 排名
     */
    private Integer ranking;
    /**
     * 平均速度
     */
    private Double avgspeed;
    /**
     * 最后一次的打卡地点id
     */
    private String locationid;
    /**
     * 最后一次的打卡地点名
     */
    private String locationname;
    /**
     * 最后一次的打卡地点排序id
     */
    private Integer locationorderid;

    private SuperrunUserinfos user;

    public void Add(){
        id= "Rk"+ NewIdByUUId.GetUUIDNoMinus();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public Double getMaxavgspeed() {
        return maxavgspeed;
    }

    public void setMaxavgspeed(Double maxavgspeed) {
        this.maxavgspeed = maxavgspeed;
    }

    public Integer getLocationcount() {
        return locationcount;
    }

    public void setLocationcount(Integer locationcount) {
        this.locationcount = locationcount;
    }

    public Integer getTotalseconds() {
        return totalseconds;
    }

    public void setTotalseconds(Integer totalseconds) {
        this.totalseconds = totalseconds;
    }

    public Integer getRanking() {
        return ranking;
    }

    public void setRanking(Integer ranking) {
        this.ranking = ranking;
    }

    public Double getAvgspeed() {
        return avgspeed;
    }

    public void setAvgspeed(Double avgspeed) {
        this.avgspeed = avgspeed;
    }

    public String getLocationid() {
        return locationid;
    }

    public void setLocationid(String locationid) {
        this.locationid = locationid;
    }

    public String getLocationname() {
        return locationname;
    }

    public void setLocationname(String locationname) {
        this.locationname = locationname;
    }

    public Integer getLocationorderid() {
        return locationorderid;
    }

    public void setLocationorderid(Integer locationorderid) {
        this.locationorderid = locationorderid;
    }

    public SuperrunUserinfos getUser() {
        return user;
    }

    public void setUser(SuperrunUserinfos user) {
        this.user = user;
    }
}
